import fetch from '@/utils/fetch'

//车辆信息查询接口
export function getCarList(data) {
  data.size= '10'
  return fetch({
    url: '/VehicleInfo/list',
    method: 'post',
    data
  })
}

//车辆线路的售货机列表
export function getvehicleList(id) {
  return fetch({
    url: 'VehicleInfo/getVendorInfoList/'+id,
    method: 'get',
  })
}
//弹框车辆信息
export function getCarInfo(id) {
  return fetch({
    url: '/adjust/info/'+ id,
    method: 'get',
  })
}

//自动售货管理LIST查询
export function getautoList(data) {
  data.size= '10'
  return fetch({
    url: '/VendorInfo/getVendorInfoList',
    method: 'post',
    data
  })
}

//查看货到商品关系表
export function getPassagewayList(id) {
  return fetch({
    url: '/VendorInfo/getPassagewayList/'+id,
    method: 'get',
  })
}

//查询商品LIST
export function getGoodsInfoList(data) {
  data.size= '10'
  return fetch({
    url: '/GoodsInfo/getGoodsInfoList',
    method: 'post',
    data
  })
}

export function getDemo(data) {
  data.size= '10'
  return fetch({
    url: '/service/poiInfo?query_type=TQUERY&pagesize=20&pagenum=1&qii=true&cluster_state=5&need_utd=true&utd_sceneid=1000&div=PC1000&addr_poi_merge=true&is_classify=true&zoom=18&city=310000&geoobj=121.38955%7C31.246591%7C121.392145%7C31.249545&keywords=%E6%B5%B7%E6%A3%A0%E8%8B%91(%E7%9C%9F%E5%8C%97%E8%B7%AF)&smToken=token&smSign=undefined',
    method: 'get',
  })
}

//查询配送信息LIST
export function getdispatchList(data) {
  data.size= '10'
  return fetch({
    url: '/TransportInfo/getTransportInfoList',
    method: 'post',
    data
  })
}

//数售货机数据同步
export function machineInfoLaunch(data) {
  return fetch({
    url: '/VendorInfo/syncVendorInfo',
    method: 'get',
  })
}





